package com.company.service.impl;

import com.company.mapper.MyMapper;
import com.company.mapper.UserMapper;
import com.company.mapper.impl.MyMapperImpl;
import com.company.service.MyService;
import com.company.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
 * Created by ruoan on 2020/9/24 20:36
 */
@Service
public class MyServiceImpl implements MyService {



    @Autowired
    private MyMapper myMapper;


    @Value("abc")
    private String abc;

    @Override
    public void exec() {
        System.out.println("MyServiceImpl exec");
        myMapper.exec();
        System.out.println("abc值为"+abc);
    }
}
